Optimal. Leaf size=43 \[ \frac {a \sin (c+d x) \cos (c+d x)}{2 d}+\frac {a x}{2}-\frac {b \cos ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {2669, 2635, 8} \[ \frac {a \sin (c+d x) \cos (c+d x)}{2 d}+\frac {a x}{2}-\frac {b \cos ^3(c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rule 2669
Rubi steps
\begin {align*} \int \cos ^2(c+d x) (a+b \sin (c+d x)) \, dx &=-\frac {b \cos ^3(c+d x)}{3 d}+a \int \cos ^2(c+d x) \, dx\\ &=-\frac {b \cos ^3(c+d x)}{3 d}+\frac {a \cos (c+d x) \sin (c+d x)}{2 d}+\frac {1}{2} a \int 1 \, dx\\ &=\frac {a x}{2}-\frac {b \cos ^3(c+d x)}{3 d}+\frac {a \cos (c+d x) \sin (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 46, normalized size = 1.07 \[ \frac {a (c+d x)}{2 d}+\frac {a \sin (2 (c+d x))}{4 d}-\frac {b \cos ^3(c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 37, normalized size = 0.86 \[ -\frac {2 \, b \cos \left (d x + c\right )^{3} - 3 \, a d x - 3 \, a \cos \left (d x + c\right ) \sin \left (d x + c\right )}{6 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.35, size = 47, normalized size = 1.09 \[ \frac {1}{2} \, a x - \frac {b \cos \left (3 \, d x + 3 \, c\right )}{12 \, d} - \frac {b \cos \left (d x + c\right )}{4 \, d} + \frac {a \sin \left (2 \, d x + 2 \, c\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 41, normalized size = 0.95 \[ \frac {-\frac {b \left (\cos ^{3}\left (d x +c \right )\right )}{3}+a \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 37, normalized size = 0.86 \[ -\frac {4 \, b \cos \left (d x + c\right )^{3} - 3 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} a}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.38, size = 68, normalized size = 1.58 \[ \frac {a\,x}{2}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+2\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {2\,b}{3}}{d\,{\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.64, size = 71, normalized size = 1.65 \[ \begin {cases} \frac {a x \sin ^{2}{\left (c + d x \right )}}{2} + \frac {a x \cos ^{2}{\left (c + d x \right )}}{2} + \frac {a \sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} - \frac {b \cos ^{3}{\left (c + d x \right )}}{3 d} & \text {for}\: d \neq 0 \\x \left (a + b \sin {\relax (c )}\right ) \cos ^{2}{\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________